Package listen.logic
Class ServerListener<T extends BaseResponse>
java.lang.Object
listen.logic.ServerListener<T>
- All Implemented Interfaces:
ExceptionProvider
,ServerResponseProvider
public class ServerListener<T extends BaseResponse>
extends Object
implements ServerResponseProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
acceptResponse
(byte[] response) final ServerListener<T>
addListeners
(ApplicationResponseProvider<BaseResponse>... providers) final ServerListener<T>
removeListeners
(ApplicationResponseProvider<BaseResponse>... providers) void
void
-
Constructor Details
-
ServerListener
-
-
Method Details
-
startListen
public void startListen() -
stopListen
public void stopListen() -
addListeners
@SafeVarargs public final ServerListener<T> addListeners(ApplicationResponseProvider<BaseResponse>... providers) -
removeListeners
@SafeVarargs public final ServerListener<T> removeListeners(ApplicationResponseProvider<BaseResponse>... providers) -
acceptException
- Specified by:
acceptException
in interfaceExceptionProvider
-
acceptResponse
public void acceptResponse(byte[] response) - Specified by:
acceptResponse
in interfaceServerResponseProvider
-