Message Channel
Message Channel PHP
interface MessageChannel
{
/**
* Send message to this channel
*/
public function send(Message $message): void;
}Last updated
Was this helpful?
Message Channel PHP
interface MessageChannel
{
/**
* Send message to this channel
*/
public function send(Message $message): void;
}Last updated
Was this helpful?
Was this helpful?
interface PollableChannel extends MessageChannel
{
/**
* Receive a message from this channel.
* Return the next available {@see \Ecotone\Messaging\Message} or {@see null} if interrupted.
*/
public function receive(): ?Message;
/**
* Receive with timeout
* Tries to receive message till time out passes
*/
public function receiveWithTimeout(int $timeoutInMilliseconds): ?Message;
}