パッケージ org.fanout.gripcontrol
クラス GripPubControl
java.lang.Object
org.fanout.pubcontrol.PubControl
org.fanout.gripcontrol.GripPubControl
public class GripPubControl
extends org.fanout.pubcontrol.PubControl
Allows consumers to publish HTTP format messages to GRIP proxies.
Configuring GripPubControl is slightly different from configuring
PubControl in that the 'uri' and 'iss' keys in each config entry
should have a 'control_' prefix. GripPubControl inherits from PubControl
and therefore also provides all of the same functionality.
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 GripPubControl()Initialize with or without a configuration.GripPubControl(List<Map<String,Object>> config)Initialize with a configuration. -
メソッドの概要
修飾子とタイプ メソッド 説明 voidapplyGripConfig(List<Map<String,Object>> config)Apply the specified configuration to this GripPubControl instance.voidpublishHttpResponse(List<String> channels, byte[] body)Synchronously publish an HTTP response format message.voidpublishHttpResponse(List<String> channels, byte[] body, String id, String prevId)Synchronously publish an HTTP response format message.voidpublishHttpResponse(List<String> channels, String body)Synchronously publish an HTTP response format message.voidpublishHttpResponse(List<String> channels, String body, String id, String prevId)Synchronously publish an HTTP response format message.voidpublishHttpResponse(List<String> channels, HttpResponseFormat format)Synchronously publish an HTTP response format message.voidpublishHttpResponse(List<String> channels, HttpResponseFormat format, String id, String prevId)Synchronously publish an HTTP response format messagevoidpublishHttpResponseAsync(List<String> channels, byte[] body, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP response format message.voidpublishHttpResponseAsync(List<String> channels, byte[] body, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP response format message.voidpublishHttpResponseAsync(List<String> channels, String body, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP response format message.voidpublishHttpResponseAsync(List<String> channels, String body, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP response format message.voidpublishHttpResponseAsync(List<String> channels, HttpResponseFormat format, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP response format message.voidpublishHttpResponseAsync(List<String> channels, HttpResponseFormat format, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP response format message.voidpublishHttpStream(List<String> channels, byte[] content)Synchronously publish an HTTP stream format message.voidpublishHttpStream(List<String> channels, byte[] content, String id, String prevId)Synchronously publish an HTTP stream format message.voidpublishHttpStream(List<String> channels, String content)Synchronously publish an HTTP stream format message.voidpublishHttpStream(List<String> channels, String content, String id, String prevId)Synchronously publish an HTTP stream format message.voidpublishHttpStream(List<String> channels, HttpStreamFormat format)Synchronously publish an HTTP stream format message.voidpublishHttpStream(List<String> channels, HttpStreamFormat format, String id, String prevId)Synchronously publish an HTTP stream format message.voidpublishHttpStreamAsync(List<String> channels, byte[] content, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP stream format message.voidpublishHttpStreamAsync(List<String> channels, byte[] content, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP stream format message.voidpublishHttpStreamAsync(List<String> channels, String content, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP stream format message.voidpublishHttpStreamAsync(List<String> channels, String content, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP stream format message.voidpublishHttpStreamAsync(List<String> channels, HttpStreamFormat format, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP stream format message.voidpublishHttpStreamAsync(List<String> channels, HttpStreamFormat format, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP stream format message.クラスから継承されたメソッド org.fanout.pubcontrol.PubControl
addClient, applyConfig, finish, publish, publishAsync, removeAllClients
-
コンストラクタの詳細
-
GripPubControl
public GripPubControl()Initialize with or without a configuration. A configuration can be applied after initialization via the applyGripConfig method. -
GripPubControl
Initialize with a configuration.
-
-
メソッドの詳細
-
applyGripConfig
Apply the specified configuration to this GripPubControl instance. The configuration object can either be a hash or an array of hashes where each hash corresponds to a single PubControlClient instance. Each hash will be parsed and a PubControlClient will be created either using just a URI or a URI and JWT authentication information. -
publishHttpResponse
public void publishHttpResponse(List<String> channels, HttpResponseFormat format, String id, String prevId) throws org.fanout.pubcontrol.PublishFailedExceptionSynchronously publish an HTTP response format message- 例外:
org.fanout.pubcontrol.PublishFailedException
-
publishHttpResponse
public void publishHttpResponse(List<String> channels, String body, String id, String prevId) throws org.fanout.pubcontrol.PublishFailedException, UnsupportedEncodingExceptionSynchronously publish an HTTP response format message.- 例外:
org.fanout.pubcontrol.PublishFailedExceptionUnsupportedEncodingException
-
publishHttpResponse
public void publishHttpResponse(List<String> channels, byte[] body, String id, String prevId) throws org.fanout.pubcontrol.PublishFailedExceptionSynchronously publish an HTTP response format message.- 例外:
org.fanout.pubcontrol.PublishFailedException
-
publishHttpResponse
public void publishHttpResponse(List<String> channels, HttpResponseFormat format) throws org.fanout.pubcontrol.PublishFailedExceptionSynchronously publish an HTTP response format message.- 例外:
org.fanout.pubcontrol.PublishFailedException
-
publishHttpResponse
public void publishHttpResponse(List<String> channels, String body) throws org.fanout.pubcontrol.PublishFailedException, UnsupportedEncodingExceptionSynchronously publish an HTTP response format message.- 例外:
org.fanout.pubcontrol.PublishFailedExceptionUnsupportedEncodingException
-
publishHttpResponse
public void publishHttpResponse(List<String> channels, byte[] body) throws org.fanout.pubcontrol.PublishFailedExceptionSynchronously publish an HTTP response format message.- 例外:
org.fanout.pubcontrol.PublishFailedException
-
publishHttpResponseAsync
public void publishHttpResponseAsync(List<String> channels, HttpResponseFormat format, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP response format message. -
publishHttpResponseAsync
public void publishHttpResponseAsync(List<String> channels, String body, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback) throws UnsupportedEncodingExceptionAsynchronously publish an HTTP response format message. -
publishHttpResponseAsync
public void publishHttpResponseAsync(List<String> channels, byte[] body, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP response format message. -
publishHttpResponseAsync
public void publishHttpResponseAsync(List<String> channels, HttpResponseFormat format, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP response format message. -
publishHttpResponseAsync
public void publishHttpResponseAsync(List<String> channels, String body, org.fanout.pubcontrol.PublishCallback callback) throws UnsupportedEncodingExceptionAsynchronously publish an HTTP response format message. -
publishHttpResponseAsync
public void publishHttpResponseAsync(List<String> channels, byte[] body, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP response format message. -
publishHttpStream
public void publishHttpStream(List<String> channels, HttpStreamFormat format, String id, String prevId) throws org.fanout.pubcontrol.PublishFailedExceptionSynchronously publish an HTTP stream format message.- 例外:
org.fanout.pubcontrol.PublishFailedException
-
publishHttpStream
public void publishHttpStream(List<String> channels, String content, String id, String prevId) throws org.fanout.pubcontrol.PublishFailedException, UnsupportedEncodingExceptionSynchronously publish an HTTP stream format message.- 例外:
org.fanout.pubcontrol.PublishFailedExceptionUnsupportedEncodingException
-
publishHttpStream
public void publishHttpStream(List<String> channels, byte[] content, String id, String prevId) throws org.fanout.pubcontrol.PublishFailedExceptionSynchronously publish an HTTP stream format message.- 例外:
org.fanout.pubcontrol.PublishFailedException
-
publishHttpStream
public void publishHttpStream(List<String> channels, HttpStreamFormat format) throws org.fanout.pubcontrol.PublishFailedExceptionSynchronously publish an HTTP stream format message.- 例外:
org.fanout.pubcontrol.PublishFailedException
-
publishHttpStream
public void publishHttpStream(List<String> channels, String content) throws org.fanout.pubcontrol.PublishFailedException, UnsupportedEncodingExceptionSynchronously publish an HTTP stream format message.- 例外:
org.fanout.pubcontrol.PublishFailedExceptionUnsupportedEncodingException
-
publishHttpStream
public void publishHttpStream(List<String> channels, byte[] content) throws org.fanout.pubcontrol.PublishFailedExceptionSynchronously publish an HTTP stream format message.- 例外:
org.fanout.pubcontrol.PublishFailedException
-
publishHttpStreamAsync
public void publishHttpStreamAsync(List<String> channels, HttpStreamFormat format, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP stream format message. -
publishHttpStreamAsync
public void publishHttpStreamAsync(List<String> channels, String content, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback) throws UnsupportedEncodingExceptionAsynchronously publish an HTTP stream format message. -
publishHttpStreamAsync
public void publishHttpStreamAsync(List<String> channels, byte[] content, String id, String prevId, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP stream format message. -
publishHttpStreamAsync
public void publishHttpStreamAsync(List<String> channels, HttpStreamFormat format, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP stream format message. -
publishHttpStreamAsync
public void publishHttpStreamAsync(List<String> channels, String content, org.fanout.pubcontrol.PublishCallback callback) throws UnsupportedEncodingExceptionAsynchronously publish an HTTP stream format message. -
publishHttpStreamAsync
public void publishHttpStreamAsync(List<String> channels, byte[] content, org.fanout.pubcontrol.PublishCallback callback)Asynchronously publish an HTTP stream format message.
-