/** * Creates a 'local' batch - with all enclosed mutations in decoded form (as Mutation instances) */ public static Batch createLocal(UUID id, long creationTime, Collection<Mutation> mutations) { return new Batch(id, creationTime, mutations, Collections.emptyList()); }
/** * Creates a 'local' batch - with all enclosed mutations in decoded form (as Mutation instances) */ public static Batch createLocal(UUID id, long creationTime, Collection<Mutation> mutations) { return new Batch(id, creationTime, mutations, Collections.emptyList()); }
/** * Creates a 'local' batch - with all enclosed mutations in decoded form (as Mutation instances) */ public static Batch createLocal(UUID id, long creationTime, Collection<Mutation> mutations) { return new Batch(id, creationTime, mutations, Collections.emptyList()); }
/** * Creates a 'remote' batch - with all enclosed mutations in encoded form (as ByteBuffer instances) * * The mutations will always be encoded using the current messaging version. */ public static Batch createRemote(UUID id, long creationTime, Collection<ByteBuffer> mutations) { return new Batch(id, creationTime, Collections.<Mutation>emptyList(), mutations); }
/** * Creates a 'remote' batch - with all enclosed mutations in encoded form (as ByteBuffer instances) * * The mutations will always be encoded using the current messaging version. */ public static Batch createRemote(UUID id, long creationTime, Collection<ByteBuffer> mutations) { return new Batch(id, creationTime, Collections.<Mutation>emptyList(), mutations); }
/** * Creates a 'remote' batch - with all enclosed mutations in encoded form (as ByteBuffer instances) * * The mutations will always be encoded using the current messaging version. */ public static Batch createRemote(UUID id, long creationTime, Collection<ByteBuffer> mutations) { return new Batch(id, creationTime, Collections.<Mutation>emptyList(), mutations); }