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 TypeMethodDescriptionvoid
onDeliverMessage
(AckosMessage<T> msg, Connection<AckosMessage<T>> conn) void
onServerSocketBind
(boolean success, Throwable cause) void
onServerSocketClose
(boolean success, Throwable cause) boolean
validateAttributes
(Attributes attr) Methods inherited from class pt.unl.fct.di.novasys.channel.base.SingleThreadedBiChannel
inboundConnectionDown, inboundConnectionUp, outboundConnectionDown, outboundConnectionFailed, outboundConnectionUp, serverSocketBind, serverSocketClose
Methods 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:
validateAttributes
in interfaceAttributeValidator
-