Class OkHttpClientTransport

    • Constructor Detail

      • OkHttpClientTransport

        public OkHttpClientTransport​(java.util.Map<java.lang.String,​java.lang.Object> options,
                                     okhttp3.OkHttpClient client)
      • OkHttpClientTransport

        public OkHttpClientTransport​(java.lang.String url,
                                     java.util.Map<java.lang.String,​java.lang.Object> options,
                                     okhttp3.OkHttpClient client)
      • OkHttpClientTransport

        public OkHttpClientTransport​(java.lang.String url,
                                     java.util.Map<java.lang.String,​java.lang.Object> options,
                                     java.util.concurrent.ScheduledExecutorService scheduler,
                                     okhttp3.OkHttpClient client)
    • Method Detail

      • getOkHttpClient

        protected okhttp3.OkHttpClient getOkHttpClient()
      • abort

        public void abort​(java.lang.Throwable failure)
        Description copied from class: ClientTransport
        Aborts this transport, usually by cancelling all pending Bayeux messages that require a response, such as /meta/connects, without waiting for a response.
        Overrides:
        abort in class AbstractHttpClientTransport
        Parameters:
        failure - the cause of the abort
        See Also:
        BayeuxClient.abort()
      • customize

        protected void customize​(okhttp3.Request.Builder request,
                                 Promise<okhttp3.Request.Builder> promise)