public class ChannelHandlerWriteSubscription extends Object
All parameters where grouped in this class so that if something needs to be added or removed the impact is lessened. The class is immutable so that the ChannelHandler can cache it for reference.
Constructor and Description |
---|
ChannelHandlerWriteSubscription(WriteCache<?> writeCache,
WriteFunction<Exception> exceptionWriteFunction,
WriteFunction<Boolean> connectionWriteFunction)
Creates a new subscription.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
WriteFunction<Boolean> |
getConnectionWriteFunction()
The write function for the connection flag.
|
WriteFunction<Exception> |
getExceptionWriteFunction()
The write function for connection/disconnection errors.
|
WriteCache<?> |
getWriteCache()
The cache to hold the value to write.
|
int |
hashCode() |
public ChannelHandlerWriteSubscription(WriteCache<?> writeCache, WriteFunction<Exception> exceptionWriteFunction, WriteFunction<Boolean> connectionWriteFunction)
writeCache
- the cache where to read the value fromexceptionWriteFunction
- the write function to notify to process errorsconnectionWriteFunction
- the write function to notify for connection updatespublic WriteCache<?> getWriteCache()
public WriteFunction<Exception> getExceptionWriteFunction()
public WriteFunction<Boolean> getConnectionWriteFunction()
Copyright © 2010–2015. All rights reserved.