パッケージ 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

      public GripPubControl()
      Initialize with or without a configuration. A configuration can be applied after initialization via the applyGripConfig method.
    • GripPubControl

      public GripPubControl​(List<Map<String,​Object>> config)
      Initialize with a configuration.
  • メソッドの詳細

    • applyGripConfig

      public void applyGripConfig​(List<Map<String,​Object>> config)
      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.PublishFailedException
      Synchronously 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, UnsupportedEncodingException
      Synchronously publish an HTTP response format message.
      例外:
      org.fanout.pubcontrol.PublishFailedException
      UnsupportedEncodingException
    • publishHttpResponse

      public void publishHttpResponse​(List<String> channels, byte[] body, String id, String prevId) throws org.fanout.pubcontrol.PublishFailedException
      Synchronously publish an HTTP response format message.
      例外:
      org.fanout.pubcontrol.PublishFailedException
    • publishHttpResponse

      public void publishHttpResponse​(List<String> channels, HttpResponseFormat format) throws org.fanout.pubcontrol.PublishFailedException
      Synchronously publish an HTTP response format message.
      例外:
      org.fanout.pubcontrol.PublishFailedException
    • publishHttpResponse

      public void publishHttpResponse​(List<String> channels, String body) throws org.fanout.pubcontrol.PublishFailedException, UnsupportedEncodingException
      Synchronously publish an HTTP response format message.
      例外:
      org.fanout.pubcontrol.PublishFailedException
      UnsupportedEncodingException
    • publishHttpResponse

      public void publishHttpResponse​(List<String> channels, byte[] body) throws org.fanout.pubcontrol.PublishFailedException
      Synchronously 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 UnsupportedEncodingException
      Asynchronously publish an HTTP response format message.
      例外:
      UnsupportedEncodingException
    • 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 UnsupportedEncodingException
      Asynchronously publish an HTTP response format message.
      例外:
      UnsupportedEncodingException
    • 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.PublishFailedException
      Synchronously 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, UnsupportedEncodingException
      Synchronously publish an HTTP stream format message.
      例外:
      org.fanout.pubcontrol.PublishFailedException
      UnsupportedEncodingException
    • publishHttpStream

      public void publishHttpStream​(List<String> channels, byte[] content, String id, String prevId) throws org.fanout.pubcontrol.PublishFailedException
      Synchronously publish an HTTP stream format message.
      例外:
      org.fanout.pubcontrol.PublishFailedException
    • publishHttpStream

      public void publishHttpStream​(List<String> channels, HttpStreamFormat format) throws org.fanout.pubcontrol.PublishFailedException
      Synchronously publish an HTTP stream format message.
      例外:
      org.fanout.pubcontrol.PublishFailedException
    • publishHttpStream

      public void publishHttpStream​(List<String> channels, String content) throws org.fanout.pubcontrol.PublishFailedException, UnsupportedEncodingException
      Synchronously publish an HTTP stream format message.
      例外:
      org.fanout.pubcontrol.PublishFailedException
      UnsupportedEncodingException
    • publishHttpStream

      public void publishHttpStream​(List<String> channels, byte[] content) throws org.fanout.pubcontrol.PublishFailedException
      Synchronously 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 UnsupportedEncodingException
      Asynchronously publish an HTTP stream format message.
      例外:
      UnsupportedEncodingException
    • 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 UnsupportedEncodingException
      Asynchronously publish an HTTP stream format message.
      例外:
      UnsupportedEncodingException
    • publishHttpStreamAsync

      public void publishHttpStreamAsync​(List<String> channels, byte[] content, org.fanout.pubcontrol.PublishCallback callback)
      Asynchronously publish an HTTP stream format message.