interface Shareable
A marker interface which allows you to put arbitrary objects into a io.vertx.core.shareddata.LocalMap.
Normally local maps only allow immutable objects or other copiable objects such as io.vertx.core.buffer.Buffer instances in order to avoid shared access to mutable state.
However if you have an object that you know is thread-safe you can mark it with this interface and then you will be able to add it to io.vertx.core.shareddata.LocalMap instances.
Use this interface with caution.
Author
Tim Fox
interface Destination : Shareable
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. |