Package io.lettuce.core.protocol
Interface PushHandler
-
- All Known Subinterfaces:
Endpoint
- All Known Implementing Classes:
DefaultEndpoint
,PubSubClusterEndpoint
,PubSubEndpoint
public interface PushHandler
A handler object that provides access toPushListener
.- Since:
- 6.0
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(PushListener listener)
Add a newlistener
.Collection<PushListener>
getPushListeners()
Returns a collection ofPushListener
.void
removeListener(PushListener listener)
Remove an existinglistener
.
-
-
-
Method Detail
-
addListener
void addListener(PushListener listener)
Add a newlistener
.- Parameters:
listener
- the listener, must not benull
.
-
removeListener
void removeListener(PushListener listener)
Remove an existinglistener
.- Parameters:
listener
- the listener, must not benull
.
-
getPushListeners
Collection<PushListener> getPushListeners()
Returns a collection ofPushListener
.- Returns:
- the collection of listeners.
-
-