class Destination extends AnyRef
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.
- Alphabetic
- By Inheritance
- Destination
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Destination(_asJava: AnyRef)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
ack(connection: StompServerConnection, frame: Frame): Boolean
Handles a
ACK
frame.Handles a
ACK
frame. * @param connection the connection- frame
the
ACK
frame see Frame- returns
true
if the destination has handled the frame (meaning it has sent the message with id)
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: AnyRef
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
destination(): String
- returns
the destination address.
-
def
dispatch(connection: StompServerConnection, frame: Frame): Destination
Dispatches the given frame.
Dispatches the given frame. * @param connection the connection
- frame
the frame see Frame
- returns
the current instance of Destination
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getSubscriptions(connection: StompServerConnection): Buffer[String]
Gets all subscription ids for the given destination hold by the given client * @param connection the connection (client)
Gets all subscription ids for the given destination hold by the given client * @param connection the connection (client)
- returns
the list of subscription id, empty if none
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
matches(address: String): Boolean
Checks whether or not the given address matches with the current destination.
Checks whether or not the given address matches with the current destination. * @param address the address
- returns
true
if it matches,false
otherwise.
-
def
nack(connection: StompServerConnection, frame: Frame): Boolean
Handles a
NACK
frame.Handles a
NACK
frame. * @param connection the connection- frame
the
NACK
frame see Frame- returns
true
if the destination has handled the frame (meaning it has sent the message with id)
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
numberOfSubscriptions(): Int
Gets the number of subscriptions attached to the current io.vertx.scala.ext.stomp.Destination.
Gets the number of subscriptions attached to the current io.vertx.scala.ext.stomp.Destination. * @return the number of subscriptions.
-
def
subscribe(connection: StompServerConnection, frame: Frame): Destination
Handles a subscription request to the current io.vertx.scala.ext.stomp.Destination.
Handles a subscription request to the current io.vertx.scala.ext.stomp.Destination. * @param connection the connection
- frame
the
SUBSCRIBE
frame see Frame- returns
the current instance of Destination
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unsubscribe(connection: StompServerConnection, frame: Frame): Boolean
Handles a un-subscription request to the current io.vertx.scala.ext.stomp.Destination.
Handles a un-subscription request to the current io.vertx.scala.ext.stomp.Destination. * @param connection the connection
- frame
the
UNSUBSCRIBE
frame see Frame- returns
true
if the un-subscription has been handled,false
otherwise.
-
def
unsubscribeConnection(connection: StompServerConnection): Destination
Removes all subscriptions of the given connection * @param connection the connection
Removes all subscriptions of the given connection * @param connection the connection
- returns
the current instance of Destination
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )