Package jmri.jmrix.ipocs
Class IpocsClientHandler
- java.lang.Object
-
- jmri.jmrix.ipocs.IpocsClientHandler
-
- All Implemented Interfaces:
java.nio.channels.CompletionHandler<java.lang.Integer,java.nio.ByteBuffer>
public class IpocsClientHandler extends java.lang.Object implements java.nio.channels.CompletionHandler<java.lang.Integer,java.nio.ByteBuffer>
- Since:
- 4.21.2
-
-
Constructor Summary
Constructors Constructor Description IpocsClientHandler(java.nio.channels.AsynchronousSocketChannel client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClientListener(IpocsClientListener clientListener)
void
completed(java.lang.Integer bytesRead, java.nio.ByteBuffer recvBuffer)
void
failed(java.lang.Throwable exc, java.nio.ByteBuffer attachment)
java.lang.String
getUnitId()
void
removeClientListener(IpocsClientListener clientListener)
void
send(Message msg)
-
-
-
Constructor Detail
-
IpocsClientHandler
public IpocsClientHandler(java.nio.channels.AsynchronousSocketChannel client)
-
-
Method Detail
-
getUnitId
public java.lang.String getUnitId()
-
completed
public void completed(java.lang.Integer bytesRead, java.nio.ByteBuffer recvBuffer)
- Specified by:
completed
in interfacejava.nio.channels.CompletionHandler<java.lang.Integer,java.nio.ByteBuffer>
-
failed
public void failed(java.lang.Throwable exc, java.nio.ByteBuffer attachment)
- Specified by:
failed
in interfacejava.nio.channels.CompletionHandler<java.lang.Integer,java.nio.ByteBuffer>
-
addClientListener
public void addClientListener(IpocsClientListener clientListener)
-
removeClientListener
public void removeClientListener(IpocsClientListener clientListener)
-
-