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 |
|---|---|
protected |
ClusterContext() |
protected |
ClusterContext(net.openhft.chronicle.wire.WireIn wire) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThen@UsedViaReflection
protected ClusterContext(@NotNull
net.openhft.chronicle.wire.WireIn wire)
throws net.openhft.chronicle.core.io.IORuntimeException
net.openhft.chronicle.core.io.IORuntimeExceptionprotected ClusterContext()
public java.util.function.Function<ClusterContext,NetworkStatsListener> networkStatsListenerFactory()
@NotNull public ClusterContext networkStatsListenerFactory(java.util.function.Function<ClusterContext,NetworkStatsListener> networkStatsListenerFactory)
public long heartbeatIntervalMs()
@NotNull public net.openhft.chronicle.core.util.ThrowingFunction<NetworkContext,TcpEventHandler,IOException> tcpEventHandlerFactory()
public void serverThreadingStrategy(ServerThreadingStrategy serverThreadingStrategy)
public ServerThreadingStrategy serverThreadingStrategy()
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()
@NotNull public ClusterContext eventLoop(net.openhft.chronicle.core.threads.EventLoop eventLoop)
public void defaults()
@NotNull public ClusterContext localIdentifier(byte localIdentifier)
@NotNull public ClusterContext wireType(net.openhft.chronicle.wire.WireType wireType)
@NotNull public ClusterContext heartbeatFactory(java.util.function.Function<ClusterContext,net.openhft.chronicle.wire.WriteMarshallable> heartbeatFactor)
@NotNull public ClusterContext heartbeatIntervalMs(long heartbeatIntervalMs)
@NotNull public ClusterContext heartbeatTimeoutMs(long heartbeatTimeoutMs)
@NotNull public ClusterContext wireOutPublisherFactory(java.util.function.Function<net.openhft.chronicle.wire.WireType,WireOutPublisher> wireOutPublisherFactory)
@NotNull 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()
@NotNull public ClusterContext connectionStrategy(ConnectionStrategy connectionStrategy)
@NotNull public ClusterContext connectionEventHandler(java.util.function.Supplier<ConnectionManager> connectionEventHandler)
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 © 2017. All rights reserved.