congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
iOSVariantUpdateEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
iOSVariantUpdateEvent
in
org.jboss.aerogear.unifiedpush.event

Best Java code snippets using org.jboss.aerogear.unifiedpush.event.iOSVariantUpdateEvent (Showing top 5 results out of 315)

origin: aerogear/aerogear-unifiedpush-server

/**
 * Receives iOS variant change event to remove client from the cache and also tear down the connection.
 * @param iOSVariantUpdateEvent event fired when updating the variant
 */
public void disconnectOnChange(@Observes final iOSVariantUpdateEvent iOSVariantUpdateEvent) {
  final iOSVariant variant = iOSVariantUpdateEvent.getiOSVariant();
  final String connectionKey = extractConnectionKey(variant);
  final ApnsClient client = apnsClientExpiringMap.remove(connectionKey);
  logger.debug("Removed client from cache for {}", variant.getVariantID());
  if (client != null) {
    tearDownApnsHttp2Connection(client);
  }
}
origin: aerogear/aerogear-unifiedpush-server

variantUpdateEventEvent.fire(new iOSVariantUpdateEvent(iOSVariant));
variantService.updateVariant(iOSVariant);
return Response.ok(iOSVariant).build();
origin: aerogear/aerogear-unifiedpush-server

logger.error("Unable to send notifications, client is not connected. Removing from cache pool");
senderCallback.onError("Unable to send notifications, client is not connected");
variantUpdateEventEvent.fire(new iOSVariantUpdateEvent(iOSVariant));
origin: org.jboss.aerogear.unifiedpush/unifiedpush-push-sender

logger.error("Unable to send notifications, client is not connected. Removing from cache pool");
senderCallback.onError("Unable to send notifications, client is not connected");
variantUpdateEventEvent.fire(new iOSVariantUpdateEvent(iOSVariant));
origin: org.jboss.aerogear.unifiedpush/unifiedpush-push-sender

/**
 * Receives iOS variant change event to remove client from the cache and also tear down the connection.
 * @param iOSVariantUpdateEvent event fired when updating the variant
 */
public void disconnectOnChange(@Observes final iOSVariantUpdateEvent iOSVariantUpdateEvent) {
  final iOSVariant variant = iOSVariantUpdateEvent.getiOSVariant();
  final String connectionKey = extractConnectionKey(variant);
  final ApnsClient client = apnsClientExpiringMap.remove(connectionKey);
  logger.debug("Removed client from cache for {}", variant.getVariantID());
  if (client != null) {
    tearDownApnsHttp2Connection(client);
  }
}
org.jboss.aerogear.unifiedpush.eventiOSVariantUpdateEvent

Javadoc

Fired when the iOS variant is updated to contain a new .p12 file, therefore the update event is used to trigger a removal from the internal connection cache.

Most used methods

  • <init>
  • getiOSVariant

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Collectors (java.util.stream)
  • JOptionPane (javax.swing)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now