Package io.vertx.mutiny.ext.stomp
Class Destination
java.lang.Object
io.vertx.mutiny.ext.stomp.Destination
- All Implemented Interfaces:
MutinyDelegate
Represents a STOMP destination.
Depending on the implementation, the message delivery is different. Queue are sending message to only one
subscribers, while topics are broadcasting the message to all subscribers.
Implementations must be thread-safe.
NOTE: This class has been automatically generated from the
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDestination
(io.vertx.ext.stomp.Destination delegate) Destination
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
ack
(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) static Destination
dispatch
(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) boolean
io.vertx.ext.stomp.Destination
getSubscriptions
(StompServerConnection connection) int
hashCode()
boolean
boolean
nack
(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) static Destination
newInstance
(io.vertx.ext.stomp.Destination arg) int
static Destination
subscribe
(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) static Destination
toString()
boolean
unsubscribe
(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) unsubscribeConnection
(StompServerConnection connection)
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Destination
public Destination(io.vertx.ext.stomp.Destination delegate) -
Destination
-
-
Method Details
-
getDelegate
public io.vertx.ext.stomp.Destination getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
topic
-
queue
-
bridge
-
destination
- Returns:
- the destination address.
-
dispatch
- Parameters:
connection
- the connectionframe
- the frame- Returns:
- the current instance of
Destination
-
subscribe
- Parameters:
connection
- the connectionframe
- theSUBSCRIBE
frame- Returns:
- the current instance of
Destination
-
unsubscribe
- Parameters:
connection
- the connectionframe
- theUNSUBSCRIBE
frame- Returns:
true
if the un-subscription has been handled,false
otherwise.
-
unsubscribeConnection
- Parameters:
connection
- the connection- Returns:
- the current instance of
Destination
-
ack
- Parameters:
connection
- the connectionframe
- theACK
frame- Returns:
true
if the destination has handled the frame (meaning it has sent the message with id)
-
nack
- Parameters:
connection
- the connectionframe
- theNACK
frame- Returns:
true
if the destination has handled the frame (meaning it has sent the message with id)
-
getSubscriptions
- Parameters:
connection
- the connection (client)- Returns:
- the list of subscription id, empty if none
-
numberOfSubscriptions
public int numberOfSubscriptions()- Returns:
- the number of subscriptions.
-
matches
- Parameters:
address
- the address- Returns:
true
if it matches,false
otherwise.
-
newInstance
-