/** * Register a new client shutdown hook. * * @param shutdownHook client shutdown hook. */ /* package */ void registerShutdownHook(final ShutdownHook shutdownHook) { checkNotClosed(); shutdownHooks.push(new WeakReference<JerseyClient.ShutdownHook>(shutdownHook, shReferenceQueue)); cleanUpShutdownHooks(); }
/** * Register a new client shutdown hook. * * @param shutdownHook client shutdown hook. */ /* package */ void registerShutdownHook(final ShutdownHook shutdownHook) { checkNotClosed(); shutdownHooks.push(new WeakReference<JerseyClient.ShutdownHook>(shutdownHook, shReferenceQueue)); cleanUpShutdownHooks(); }
/** * Register a new client shutdown hook. * * @param shutdownHook client shutdown hook. */ /* package */ void registerShutdownHook(final ShutdownHook shutdownHook) { checkNotClosed(); shutdownHooks.push(new WeakReference<JerseyClient.ShutdownHook>(shutdownHook, shReferenceQueue)); cleanUpShutdownHooks(); }
/** * Register a new client shutdown hook. * * @param shutdownHook client shutdown hook. */ /* package */ void registerShutdownHook(final ShutdownHook shutdownHook) { checkNotClosed(); shutdownHooks.push(new WeakReference<JerseyClient.ShutdownHook>(shutdownHook, shReferenceQueue)); cleanUpShutdownHooks(); }
/** * Register a new client shutdown hook. * * @param shutdownHook client shutdown hook. */ /* package */ void registerShutdownHook(final ShutdownHook shutdownHook) { checkNotClosed(); shutdownHooks.push(new WeakReference<JerseyClient.ShutdownHook>(shutdownHook, shReferenceQueue)); cleanUpShutdownHooks(); }
/** * Register a new client shutdown hook. * * @param shutdownHook client shutdown hook. */ /* package */ void registerShutdownHook(final ShutdownHook shutdownHook) { checkNotClosed(); shutdownHooks.push(new WeakReference<JerseyClient.ShutdownHook>(shutdownHook, shReferenceQueue)); cleanUpShutdownHooks(); }
/** * Register a new client shutdown hook. * * @param shutdownHook client shutdown hook. */ /* package */ void registerShutdownHook(final ShutdownHook shutdownHook) { checkNotClosed(); shutdownHooks.push(new WeakReference<JerseyClient.ShutdownHook>(shutdownHook, shReferenceQueue)); cleanUpShutdownHooks(); }