public class ClusterContext extends Object implements net.openhft.chronicle.wire.Demarshallable, net.openhft.chronicle.wire.WriteMarshallable, java.util.function.Consumer<HostDetails>
| Modifier | Constructor and Description |
|---|---|
|
ClusterContext() |
protected |
ClusterContext(net.openhft.chronicle.wire.WireIn wire) |
|
ClusterContext(net.openhft.chronicle.wire.WireType wireType,
java.util.function.BiFunction<ClusterContext,HostDetails,net.openhft.chronicle.wire.WriteMarshallable> handlerFactory,
java.util.function.Function<net.openhft.chronicle.wire.WireType,WireOutPublisher> wireOutPublisherFactory,
java.util.function.Function<ClusterContext,NetworkContext> networkContextFactory,
java.util.function.Supplier<ConnectionManager> connectionEventHandler,
long heartbeatTimeoutMs,
long heartbeatIntervalMs,
String clusterName,
net.openhft.chronicle.core.threads.EventLoop eventLoop,
java.util.function.Function<ClusterContext,net.openhft.chronicle.wire.WriteMarshallable> heartbeatFactory,
ConnectionStrategy connectionStrategy,
byte localIdentifier) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen@UsedViaReflection
protected ClusterContext(@NotNull
net.openhft.chronicle.wire.WireIn wire)
public ClusterContext(net.openhft.chronicle.wire.WireType wireType,
java.util.function.BiFunction<ClusterContext,HostDetails,net.openhft.chronicle.wire.WriteMarshallable> handlerFactory,
java.util.function.Function<net.openhft.chronicle.wire.WireType,WireOutPublisher> wireOutPublisherFactory,
java.util.function.Function<ClusterContext,NetworkContext> networkContextFactory,
java.util.function.Supplier<ConnectionManager> connectionEventHandler,
long heartbeatTimeoutMs,
long heartbeatIntervalMs,
String clusterName,
net.openhft.chronicle.core.threads.EventLoop eventLoop,
java.util.function.Function<ClusterContext,net.openhft.chronicle.wire.WriteMarshallable> heartbeatFactory,
ConnectionStrategy connectionStrategy,
byte localIdentifier)
public ClusterContext()
public long heartbeatIntervalMs()
public net.openhft.chronicle.core.util.ThrowingFunction<NetworkContext,IOException,TcpEventHandler> tcpEventHandlerFactory()
public void handlerFactory(java.util.function.BiFunction<ClusterContext,HostDetails,net.openhft.chronicle.wire.WriteMarshallable> handlerFactory)
public void clusterName(String clusterName)
public net.openhft.chronicle.core.threads.EventLoop eventLoop()
public ClusterContext eventLoop(net.openhft.chronicle.core.threads.EventLoop eventLoop)
public void defaults()
public ClusterContext localIdentifier(byte localIdentifier)
public ClusterContext wireType(net.openhft.chronicle.wire.WireType wireType)
public ClusterContext heartbeatTimeoutMs(long heartbeatTimeoutMs)
public ClusterContext wireOutPublisherFactory(java.util.function.Function<net.openhft.chronicle.wire.WireType,WireOutPublisher> wireOutPublisherFactory)
public ClusterContext networkContextFactory(java.util.function.Function<ClusterContext,NetworkContext> networkContextFactory)
public net.openhft.chronicle.wire.WireType wireType()
public java.util.function.Function<net.openhft.chronicle.wire.WireType,WireOutPublisher> wireOutPublisherFactory()
public long heartbeatTimeoutMs()
public String clusterName()
public byte localIdentifier()
public java.util.function.Function<ClusterContext,NetworkContext> networkContextFactory()
public void writeMarshallable(@NotNull
net.openhft.chronicle.wire.WireOut wireOut)
writeMarshallable in interface net.openhft.chronicle.wire.WriteMarshallablepublic void accept(@NotNull
HostDetails hd)
accept in interface java.util.function.Consumer<HostDetails>Copyright © 2016. All rights reserved.