CE-20 created a QueueWireHander ( still work inprogress ) - now using inWire.readDocument(metaDataConsumer, dataConsumer); to read the in wire, rather than using the bytes directly

This commit is contained in:
Rob Austin
2015-04-10 17:29:28 +01:00
parent 8d4eca3cd0
commit 25d9c3797a
3 changed files with 284 additions and 305 deletions
@@ -33,39 +33,5 @@ import java.util.function.Supplier;
*/
public class MapWireHandlerBuilder {
public static <K, V> WireHandler of(
@NotNull Supplier<ChronicleHashInstanceBuilder<ChronicleMap<K, V>>> mapFactory,
@NotNull Supplier<ChronicleHashInstanceBuilder<ChronicleMap<String, Integer>>>
channelNameToIdFactory,
@NotNull ReplicationHub hub,
byte localIdentifier,
@NotNull Map<Integer,Replica> channels) {
return new MapWireHandler<>(
mapFactory,
channelNameToIdFactory,
hub,
localIdentifier,
channels);
}
// note : peter has asked for these to be in camel case
public enum Fields implements WireKey {
hasNext,
timeStamp,
channelId,
eventName,
csp,
tid, // transactionId
reply,
resultKey,
resultValue,
arg1,
arg2,
arg3,
isException,
exception,
resultIsNull
}
}