Class AckosChannel<T>
java.lang.Object
pt.unl.fct.di.novasys.channel.base.SingleThreadedChannel<T,Y>
pt.unl.fct.di.novasys.channel.base.SingleThreadedBiChannel<T,AckosMessage<T>>
pt.unl.fct.di.novasys.channel.ackos.AckosChannel<T>
- All Implemented Interfaces:
IChannel<T>,AttributeValidator,InConnListener<AckosMessage<T>>,MessageListener<AckosMessage<T>>,OutConnListener<AckosMessage<T>>
public class AckosChannel<T>
extends SingleThreadedBiChannel<T,AckosMessage<T>>
implements AttributeValidator
-
Field Summary
FieldsFields inherited from interface pt.unl.fct.di.novasys.network.AttributeValidator
ALWAYS_VALID, CHANNEL_MAGIC_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionAckosChannel(ISerializer<T> serializer, ChannelListener<T> list, Properties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidonDeliverMessage(AckosMessage<T> msg, Connection<AckosMessage<T>> conn) voidonServerSocketBind(boolean success, Throwable cause) voidonServerSocketClose(boolean success, Throwable cause) booleanvalidateAttributes(Attributes attr) Methods inherited from class pt.unl.fct.di.novasys.channel.base.SingleThreadedBiChannel
inboundConnectionDown, inboundConnectionUp, outboundConnectionDown, outboundConnectionFailed, outboundConnectionUp, serverSocketBind, serverSocketCloseMethods inherited from class pt.unl.fct.di.novasys.channel.base.SingleThreadedChannel
closeConnection, deliverMessage, openConnection, sendMessage
-
Field Details
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
-
Constructor Details
-
AckosChannel
public AckosChannel(ISerializer<T> serializer, ChannelListener<T> list, Properties properties) throws UnknownHostException - Throws:
UnknownHostException
-
-
Method Details
-
onServerSocketBind
-
onServerSocketClose
-
onDeliverMessage
-
validateAttributes
- Specified by:
validateAttributesin interfaceAttributeValidator
-