Class GenericSocketEndpoint
- java.lang.Object
-
- pl.zankowski.iextrading4j.client.socket.endpoint.GenericSocketEndpoint
-
- All Implemented Interfaces:
ISocketEndpoint
public class GenericSocketEndpoint extends Object implements ISocketEndpoint
-
-
Constructor Summary
Constructors Constructor Description GenericSocketEndpoint(SocketManager socketManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> void
subscribe(SocketRequest<R> socketRequest, Consumer<R> consumer)
<R> void
unsubscribe(SocketRequest<R> socketRequest)
-
-
-
Constructor Detail
-
GenericSocketEndpoint
public GenericSocketEndpoint(SocketManager socketManager)
-
-
Method Detail
-
subscribe
public <R> void subscribe(SocketRequest<R> socketRequest, Consumer<R> consumer)
- Specified by:
subscribe
in interfaceISocketEndpoint
-
unsubscribe
public <R> void unsubscribe(SocketRequest<R> socketRequest)
- Specified by:
unsubscribe
in interfaceISocketEndpoint
-
-