Method | Description | |
---|---|---|
createSenderForQueue ( string $lookupName, string $sessionId = null ) : AppserverIo\Messaging\QueueSender | Return a new sender for the message queue with the passed lookup name. | |
getIdentifier ( ) : string | Initializes the manager instance. | |
getManagerSettings ( ) : AppserverIo\Appserver\MessageQueue\QueueManagerSettingsInterface | Return's the queue settings. | |
getQueues ( ) : array | Returns the array with queue names and the MessageListener class names as values. | |
getResourceLocator ( ) : AppserverIo\Psr\Pms\ResourceLocatorInterface | Return the resource locator instance. | |
hasQueue ( AppserverIo\Psr\Pms\QueueInterface $queue ) : boolean | Returns TRUE if the application is related with the passed queue instance. | |
initialize ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | Has been automatically invoked by the container after the application instance has been created. | |
injectManagerSettings ( AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface $managerSettings ) : void | Injects the queue settings. | |
injectMessages ( AppserverIo\Storage\GenericStackable $messages ) : void | Injects the storage for the messages. | |
injectQueues ( AppserverIo\Storage\GenericStackable $queues ) : void | Injects the storage for the queues. | |
injectResourceLocator ( AppserverIo\Psr\Pms\ResourceLocatorInterface $resourceLocator ) : void | Injects the resource locator that locates the requested queue. | |
injectWorkers ( AppserverIo\Storage\GenericStackable $workers ) : void | Injects the storage for the workers. | |
locate ( AppserverIo\Psr\Pms\QueueInterface $queue ) : AppserverIo\Psr\Pms\QueueInterface | Tries to locate the queue that handles the request and returns the instance if one can be found. | |
lookup ( string $lookupName, string $sessionId = null, array $args = [] ) : AppserverIo\Psr\Pms\QueueInterface | Runs a lookup for the message queue with the passed lookup name and session ID. | |
stop ( ) : void | Shutdown the session manager instance. | |
updateMonitor ( AppserverIo\Psr\Pms\MessageInterface $message ) : void | Updates the message monitor. |
Method | Description | |
---|---|---|
registeMessageQueue ( AppserverIo\Appserver\Core\Api\Node\MessageQueueNodeInterface $messageQueueNode ) : void | Deploys the message queue described by the passed node. | |
registerMessageQueues ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | Deploys the message queues. |
public createSenderForQueue ( string $lookupName, string $sessionId = null ) : AppserverIo\Messaging\QueueSender | ||
$lookupName | string | The lookup name of the queue to return a sender for |
$sessionId | string | The session-ID to be passed to the queue session |
return | AppserverIo\Messaging\QueueSender | The sender instance |
public getIdentifier ( ) : string | ||
return | string |
public getManagerSettings ( ) : AppserverIo\Appserver\MessageQueue\QueueManagerSettingsInterface | ||
return | AppserverIo\Appserver\MessageQueue\QueueManagerSettingsInterface | The queue settings |
public getResourceLocator ( ) : AppserverIo\Psr\Pms\ResourceLocatorInterface | ||
return | AppserverIo\Psr\Pms\ResourceLocatorInterface | The resource locator instance |
public initialize ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | ||
$application | AppserverIo\Psr\Application\ApplicationInterface | The application instance |
return | void |
public injectManagerSettings ( AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface $managerSettings ) : void | ||
$managerSettings | AppserverIo\Appserver\Application\Interfaces\ManagerSettingsInterface | The queue settings |
return | void |
public injectMessages ( AppserverIo\Storage\GenericStackable $messages ) : void | ||
$messages | AppserverIo\Storage\GenericStackable | An storage for the messages |
return | void |
public injectQueues ( AppserverIo\Storage\GenericStackable $queues ) : void | ||
$queues | AppserverIo\Storage\GenericStackable | An storage for the queues |
return | void |
public injectResourceLocator ( AppserverIo\Psr\Pms\ResourceLocatorInterface $resourceLocator ) : void | ||
$resourceLocator | AppserverIo\Psr\Pms\ResourceLocatorInterface | The resource locator |
return | void |
public injectWorkers ( AppserverIo\Storage\GenericStackable $workers ) : void | ||
$workers | AppserverIo\Storage\GenericStackable | An storage for the workers |
return | void |
public locate ( AppserverIo\Psr\Pms\QueueInterface $queue ) : AppserverIo\Psr\Pms\QueueInterface | ||
$queue | AppserverIo\Psr\Pms\QueueInterface | The queue request |
return | AppserverIo\Psr\Pms\QueueInterface | The requested queue instance |
public lookup ( string $lookupName, string $sessionId = null, array $args = [] ) : AppserverIo\Psr\Pms\QueueInterface | ||
$lookupName | string | The queue lookup name |
$sessionId | string | The session ID |
$args | array | The arguments passed to the queue |
return | AppserverIo\Psr\Pms\QueueInterface | The requested queue instance |
protected registeMessageQueue ( AppserverIo\Appserver\Core\Api\Node\MessageQueueNodeInterface $messageQueueNode ) : void | ||
$messageQueueNode | AppserverIo\Appserver\Core\Api\Node\MessageQueueNodeInterface | The node that describes the message queue |
return | void |
protected registerMessageQueues ( AppserverIo\Psr\Application\ApplicationInterface $application ) : void | ||
$application | AppserverIo\Psr\Application\ApplicationInterface | The application instance |
return | void |
public updateMonitor ( AppserverIo\Psr\Pms\MessageInterface $message ) : void | ||
$message | AppserverIo\Psr\Pms\MessageInterface | The message to update the monitor for |
return | void |