public abstract class ClusterContext<T extends ClusteredNetworkContext<T>> extends net.openhft.chronicle.wire.SelfDescribingMarshallable implements Consumer<HostDetails>
Constructor and Description |
---|
ClusterContext() |
usesSelfDescribingMessage
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
$equals, $fieldInfos, $hashCode, $toString, copyFrom, copyTo, deepCopy, fromFile, fromFile, fromFileAsMap, fromFileAsMap, fromHexString, fromString, fromString, fromString, getClassName, getField, mergeToMap, reset, setField, streamFromFile, streamFromFile, writeMarshallable
public String procPrefix()
public void procPrefix(String procPrefix)
public void readMarshallable(@NotNull @NotNull net.openhft.chronicle.wire.WireIn wire) throws net.openhft.chronicle.core.io.IORuntimeException
readMarshallable
in interface net.openhft.chronicle.wire.Marshallable
readMarshallable
in interface net.openhft.chronicle.wire.ReadMarshallable
net.openhft.chronicle.core.io.IORuntimeException
public Function<ClusterContext<T>,NetworkStatsListener<T>> networkStatsListenerFactory()
@NotNull public @NotNull ClusterContext<T> networkStatsListenerFactory(Function<ClusterContext<T>,NetworkStatsListener<T>> networkStatsListenerFactory)
public long heartbeatIntervalMs()
@NotNull public abstract @NotNull net.openhft.chronicle.core.util.ThrowingFunction<T,TcpEventHandler<T>,IOException> tcpEventHandlerFactory()
public ClusterContext<T> serverThreadingStrategy(ServerThreadingStrategy serverThreadingStrategy)
public ServerThreadingStrategy serverThreadingStrategy()
public ClusterContext<T> handlerFactory(UberHandler.Factory<T> handlerFactory)
public void clusterName(String clusterName)
public net.openhft.chronicle.core.threads.EventLoop eventLoop()
@NotNull public @NotNull ClusterContext<T> eventLoop(net.openhft.chronicle.core.threads.EventLoop eventLoop)
protected abstract void defaults()
@NotNull public @NotNull ClusterContext<T> localIdentifier(byte localIdentifier)
@NotNull public @NotNull ClusterContext<T> wireType(net.openhft.chronicle.wire.WireType wireType)
@NotNull public @NotNull ClusterContext<T> heartbeatFactory(Function<ClusterContext<T>,net.openhft.chronicle.wire.WriteMarshallable> heartbeatFactor)
@NotNull public @NotNull ClusterContext<T> heartbeatIntervalMs(long heartbeatIntervalMs)
@NotNull public @NotNull ClusterContext<T> heartbeatTimeoutMs(long heartbeatTimeoutMs)
@NotNull public @NotNull ClusterContext<T> wireOutPublisherFactory(Function<net.openhft.chronicle.wire.WireType,WireOutPublisher> wireOutPublisherFactory)
@NotNull public @NotNull ClusterContext<T> networkContextFactory(Function<ClusterContext<T>,T> networkContextFactory)
public net.openhft.chronicle.wire.WireType wireType()
public Function<net.openhft.chronicle.wire.WireType,WireOutPublisher> wireOutPublisherFactory()
public long heartbeatTimeoutMs()
public String clusterName()
public byte localIdentifier()
public Function<ClusterContext<T>,T> networkContextFactory()
@NotNull public @NotNull ClusterContext<T> connectionNotifier(ConnectionNotifier connectionNotifier)
@NotNull public @NotNull ClusterContext<T> connectionEventHandler(Supplier<ConnectionManager<T>> connectionEventHandler)
public void accept(@NotNull @NotNull HostDetails hd)
accept
in interface Consumer<HostDetails>
public long retryInterval()
public ClusterContext<T> retryInterval(long retryInterval)
Copyright © 2020. All rights reserved.