Uses of Class
com.eatthepath.pushy.apns.ApnsClientBuilder
Package
Description
Contains classes and interfaces for interacting with the Apple Push Notification service (APNs).
-
Uses of ApnsClientBuilder in com.eatthepath.pushy.apns
Modifier and TypeMethodDescriptionApnsClientBuilder.setApnsServer
(String hostname) Sets the hostname of the server to which the client under construction will connect.ApnsClientBuilder.setApnsServer
(String hostname, int port) Sets the hostname and port of the server to which the client under construction will connect.ApnsClientBuilder.setClientCredentials
(File p12File, String p12Password) Sets the TLS credentials for the client under construction using the contents of the given PKCS#12 file.ApnsClientBuilder.setClientCredentials
(InputStream p12InputStream, String p12Password) Sets the TLS credentials for the client under construction using the data from the given PKCS#12 input stream.ApnsClientBuilder.setClientCredentials
(X509Certificate clientCertificate, PrivateKey privateKey, String privateKeyPassword) Sets the TLS credentials for the client under construction.ApnsClientBuilder.setConcurrentConnections
(int concurrentConnections) Sets the maximum number of concurrent connections the client under construction may attempt to maintain to the APNs server.ApnsClientBuilder.setConnectionTimeout
(Duration timeout) Sets the maximum amount of time, in milliseconds, that the client under construction will wait to establish a connection with the APNs server before the connection attempt is considered a failure.ApnsClientBuilder.setEventLoopGroup
(EventLoopGroup eventLoopGroup) Sets the event loop group to be used by the client under construction.ApnsClientBuilder.setFrameLogger
(Http2FrameLogger frameLogger) Sets the HTTP/2 frame logger for the client under construction.ApnsClientBuilder.setGracefulShutdownTimeout
(Duration gracefulShutdownTimeout) Sets the amount of time clients should wait for in-progress requests to complete before closing a connection during a graceful shutdown.ApnsClientBuilder.setHostnameVerificationEnabled
(boolean hostnameVerificationEnabled) Enables or disables hostname verification for the client under construction.ApnsClientBuilder.setIdlePingInterval
(Duration idlePingInterval) Sets the amount of idle time (in milliseconds) after which the client under construction will send a PING frame to the APNs server.ApnsClientBuilder.setMetricsListener
(ApnsClientMetricsListener metricsListener) Sets the metrics listener for the client under construction.ApnsClientBuilder.setProxyHandlerFactory
(ProxyHandlerFactory proxyHandlerFactory) Sets the proxy handler factory to be used to construct proxy handlers when establishing a new connection to the APNs gateway.ApnsClientBuilder.setSigningKey
(ApnsSigningKey signingKey) Sets the signing key for the client under construction.ApnsClientBuilder.setTokenExpiration
(Duration tokenExpiration) Sets the duration after which authentication tokens should expire and be regenerated from the signing key for clients using token-based authentication.ApnsClientBuilder.setTrustedServerCertificateChain
(File certificatePemFile) Sets the trusted certificate chain for the client under construction using the contents of the given PEM file.ApnsClientBuilder.setTrustedServerCertificateChain
(InputStream certificateInputStream) Sets the trusted certificate chain for the client under construction using the contents of the given PEM input stream.ApnsClientBuilder.setTrustedServerCertificateChain
(X509Certificate... certificates) Sets the trusted certificate chain for the client under construction.ApnsClientBuilder.setUseAlpn
(boolean useAlpn) Sets whether this client should perform application-layer protocol negotiation (ALPN) when connecting to an APNs server.