Package | Description |
---|---|
com.notnoop.apns |
Modifier and Type | Method and Description |
---|---|
ApnsServiceBuilder |
ApnsServiceBuilder.asBatched()
Construct service which will process notification requests in batch.
|
ApnsServiceBuilder |
ApnsServiceBuilder.asBatched(int waitTimeInSec,
int maxWaitTimeInSec)
Construct service which will process notification requests in batch.
|
ApnsServiceBuilder |
ApnsServiceBuilder.asBatched(int waitTimeInSec,
int maxWaitTimeInSec,
ScheduledExecutorService batchThreadPoolExecutor)
Construct service which will process notification requests in batch.
|
ApnsServiceBuilder |
ApnsServiceBuilder.asBatched(int waitTimeInSec,
int maxWaitTimeInSec,
ThreadFactory threadFactory)
Construct service which will process notification requests in batch.
|
ApnsServiceBuilder |
ApnsServiceBuilder.asPool(ExecutorService executor,
int maxConnections)
Constructs a pool of connections to the notification servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.asPool(int maxConnections)
Constructs a pool of connections to the notification servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.asQueued()
Constructs a new thread with a processing queue to process
notification requests.
|
ApnsServiceBuilder |
ApnsServiceBuilder.asQueued(ThreadFactory threadFactory)
Constructs a new thread with a processing queue to process
notification requests.
|
static ApnsServiceBuilder |
APNS.newService()
Returns a new APNS Service for sending iPhone notifications
|
ApnsServiceBuilder |
ApnsServiceBuilder.withAppleDestination(boolean isProduction)
Specify to use Apple servers as iPhone gateway and feedback servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withAuthProxy(Proxy proxy,
String proxyUsername,
String proxyPassword)
Specify the proxy and the authentication parameters to be used
to establish the connections to Apple Servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withAutoAdjustCacheLength(boolean autoAdjustCacheLength)
Specify if the notification cache should auto adjust.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withCacheLength(int cacheLength)
Specify the number of notifications to cache for error purposes.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withCert(InputStream stream,
String password)
Specify the certificate used to connect to Apple APNS
servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withCert(InputStream stream,
String password,
String alias)
Specify the certificate store used to connect to Apple APNS
servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withCert(KeyStore keyStore,
String password)
Specify the certificate used to connect to Apple APNS
servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withCert(KeyStore keyStore,
String password,
String alias)
Specify the certificate store used to connect to Apple APNS
servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withCert(String fileName,
String password)
Specify the certificate used to connect to Apple APNS
servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withConnectTimeout(int connectTimeout)
Specify the timeout value to use for connectionTimeout in created
sockets, for both feedback and push connections, in milliseconds.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withDelegate(ApnsDelegate delegate)
Sets the delegate of the service, that gets notified of the
status of message delivery.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withErrorDetectionThreadFactory(ThreadFactory threadFactory)
Provide a custom source for threads used for monitoring connections.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withFeedbackDestination(String host,
int port)
Specify the Feedback for getting failed devices from
Apple iPhone Push servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withGatewayDestination(String host,
int port)
Specify the gateway server for sending Apple iPhone
notifications.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withNoErrorDetection()
Disables the enhanced error detection, enabled by the
enhanced push notification interface.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withProductionDestination()
Specify to use the Apple Production servers as iPhone gateway
and feedback servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withProxy(Proxy proxy)
Specify the proxy to be used to establish the connections
to Apple Servers
|
ApnsServiceBuilder |
ApnsServiceBuilder.withProxySocket(Socket proxySocket)
Deprecated.
use
withProxy(Proxy) instead |
ApnsServiceBuilder |
ApnsServiceBuilder.withReadTimeout(int readTimeout)
Specify the timeout value to be set in new setSoTimeout in created
sockets, for both feedback and push connections, in milliseconds.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withReconnectPolicy(ReconnectPolicy.Provided rp)
Specify the reconnection policy for the socket connection.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withReconnectPolicy(ReconnectPolicy rp)
Specify the reconnection policy for the socket connection.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withSandboxDestination()
Specify to use the Apple sandbox servers as iPhone gateway
and feedback servers.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withSocksProxy(String host,
int port)
Specify the address of the SOCKS proxy the connection should
use.
|
ApnsServiceBuilder |
ApnsServiceBuilder.withSSLContext(SSLContext sslContext)
Specify the SSLContext that should be used to initiate the
connection to Apple Server.
|
Copyright © 2015. All rights reserved.