@Extension public class MessageLogger extends MessageQueueListener
コンストラクタと説明 |
---|
MessageLogger() |
修飾子とタイプ | メソッドと説明 |
---|---|
String |
getAppId()
Gets application id.
|
String |
getName()
Gets name.
|
void |
onBind(String queueName)
Calls when binds to queue.
|
void |
onReceive(String queueName,
String contentType,
Map<String,Object> headers,
byte[] body)
Calls when message arrives.
|
void |
onUnbind(String queueName)
Calls when unbinds from queue.
|
all, fireOnBind, fireOnReceive, fireOnUnbind
public String getName()
getName
クラス内 MessageQueueListener
public String getAppId()
getAppId
クラス内 MessageQueueListener
public void onBind(String queueName)
onBind
クラス内 MessageQueueListener
queueName
- the queue name that bind to.public void onUnbind(String queueName)
onUnbind
クラス内 MessageQueueListener
queueName
- the queue name that unbind from.public void onReceive(String queueName, String contentType, Map<String,Object> headers, byte[] body)
onReceive
クラス内 MessageQueueListener
queueName
- the queue name that receive from.contentType
- the type of content.headers
- the map of message headers.body
- the content body.Copyright © 2016–2018. All rights reserved.