public class SimpleApnsClientCache extends Object
| Constructor and Description |
|---|
SimpleApnsClientCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUpConnection() |
void |
disconnectOnChange(iOSVariantUpdateEvent iOSVariantUpdateEvent)
Receives iOS variant change event to remove client from the cache and also tear down the connection.
|
com.turo.pushy.apns.ApnsClient |
getApnsClientForVariant(iOSVariant iOSVariant,
ServiceConstructor<com.turo.pushy.apns.ApnsClient> constructor) |
public com.turo.pushy.apns.ApnsClient getApnsClientForVariant(iOSVariant iOSVariant, ServiceConstructor<com.turo.pushy.apns.ApnsClient> constructor)
public void disconnectOnChange(@Observes
iOSVariantUpdateEvent iOSVariantUpdateEvent)
iOSVariantUpdateEvent - event fired when updating the variant@PreDestroy public void cleanUpConnection()
Copyright © 2017 JBoss by Red Hat. All rights reserved.