Package ej.rcommand.synchronous
Class EndpointListener
- java.lang.Object
-
- ej.rcommand.synchronous.EndpointListener
-
- All Implemented Interfaces:
RemoteCommandListener
public class EndpointListener extends Object implements RemoteCommandListener
Endpoint adapter.
-
-
Constructor Summary
Constructors Constructor Description EndpointListener(Endpoint endpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommandReceived(CommandReader commandReader, CommandSender commandSender, String command)May be called concurrently by several threads.String[]getManagedCommands()
-
-
-
Constructor Detail
-
EndpointListener
public EndpointListener(Endpoint endpoint)
-
-
Method Detail
-
getManagedCommands
public String[] getManagedCommands()
- Specified by:
getManagedCommandsin interfaceRemoteCommandListener
-
commandReceived
public void commandReceived(CommandReader commandReader, CommandSender commandSender, String command)
Description copied from interface:RemoteCommandListenerMay be called concurrently by several threads. Must be synchronized.- Specified by:
commandReceivedin interfaceRemoteCommandListener
-
-