blob: cea7c111a7fe7ae88a1628c0abd776771545eb7c [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_221) on Wed Jan 29 15:38:01 PST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Interface org.apache.twill.common.Cancellable (Apache Twill 0.14.0 API)</title>
<meta name="date" content="2020-01-29">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Interface org.apache.twill.common.Cancellable (Apache Twill 0.14.0 API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/twill/common/class-use/Cancellable.html" target="_top">Frames</a></li>
<li><a href="Cancellable.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Interface org.apache.twill.common.Cancellable" class="title">Uses of Interface<br>org.apache.twill.common.Cancellable</h2>
</div>
<div class="classUseContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#org.apache.twill.api">org.apache.twill.api</a></td>
<td class="colLast">
<div class="block">Classes in this package provides core functionality of the Twill library.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.apache.twill.discovery">org.apache.twill.discovery</a></td>
<td class="colLast">
<div class="block">Classes in this package provides service discovery implementations.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.apache.twill.internal">org.apache.twill.internal</a></td>
<td class="colLast">
<div class="block">This package provides internal classes for Twill.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.apache.twill.kafka.client">org.apache.twill.kafka.client</a></td>
<td class="colLast">
<div class="block">This package provides Kafka client interfaces.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#org.apache.twill.yarn">org.apache.twill.yarn</a></td>
<td class="colLast">
<div class="block">Classes in this package implement the Twill API for Apache Hadoop YARN.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#org.apache.twill.zookeeper">org.apache.twill.zookeeper</a></td>
<td class="colLast">
<div class="block">This package provides functionality for ZooKeeper interactions.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<ul class="blockList">
<li class="blockList"><a name="org.apache.twill.api">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a> in <a href="../../../../../org/apache/twill/api/package-summary.html">org.apache.twill.api</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/twill/api/package-summary.html">org.apache.twill.api</a> that return <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">ServiceAnnouncer.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/api/ServiceAnnouncer.html#announce-java.lang.String-int-">announce</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;serviceName,
int&nbsp;port)</code>
<div class="block">Registers an endpoint that could be discovered by external party.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">ServiceAnnouncer.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/api/ServiceAnnouncer.html#announce-java.lang.String-int-byte:A-">announce</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;serviceName,
int&nbsp;port,
byte[]&nbsp;payload)</code>
<div class="block">Registers an endpoint that could be discovered by external party with a payload.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">TwillContext.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/api/TwillContext.html#electLeader-java.lang.String-org.apache.twill.api.ElectionHandler-">electLeader</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="../../../../../org/apache/twill/api/ElectionHandler.html" title="interface in org.apache.twill.api">ElectionHandler</a>&nbsp;participantHandler)</code>
<div class="block">Register to participate in a leader election by instances within the same <a href="../../../../../org/apache/twill/api/TwillApplication.html" title="interface in org.apache.twill.api"><code>TwillApplication</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">TwillRunner.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/api/TwillRunner.html#scheduleSecureStoreUpdate-org.apache.twill.api.SecureStoreUpdater-long-long-java.util.concurrent.TimeUnit-">scheduleSecureStoreUpdate</a></span>(<a href="../../../../../org/apache/twill/api/SecureStoreUpdater.html" title="interface in org.apache.twill.api">SecureStoreUpdater</a>&nbsp;updater,
long&nbsp;initialDelay,
long&nbsp;delay,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</a>&nbsp;unit)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">Use <a href="../../../../../org/apache/twill/api/TwillRunner.html#setSecureStoreRenewer-org.apache.twill.api.security.SecureStoreRenewer-long-long-long-java.util.concurrent.TimeUnit-"><code>TwillRunner.setSecureStoreRenewer(SecureStoreRenewer, long, long, long, TimeUnit)</code></a> instead.</span></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">TwillRunner.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/api/TwillRunner.html#setSecureStoreRenewer-org.apache.twill.api.security.SecureStoreRenewer-long-long-long-java.util.concurrent.TimeUnit-">setSecureStoreRenewer</a></span>(<a href="../../../../../org/apache/twill/api/security/SecureStoreRenewer.html" title="class in org.apache.twill.api.security">SecureStoreRenewer</a>&nbsp;renewer,
long&nbsp;initialDelay,
long&nbsp;delay,
long&nbsp;retryDelay,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</a>&nbsp;unit)</code>
<div class="block">Sets and schedules a periodic renewal of <a href="../../../../../org/apache/twill/api/SecureStore.html" title="interface in org.apache.twill.api"><code>SecureStore</code></a> using a given <a href="../../../../../org/apache/twill/api/security/SecureStoreRenewer.html" title="class in org.apache.twill.api.security"><code>SecureStoreRenewer</code></a>.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.twill.discovery">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a> in <a href="../../../../../org/apache/twill/discovery/package-summary.html">org.apache.twill.discovery</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/twill/discovery/package-summary.html">org.apache.twill.discovery</a> that return <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">InMemoryDiscoveryService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/discovery/InMemoryDiscoveryService.html#register-org.apache.twill.discovery.Discoverable-">register</a></span>(<a href="../../../../../org/apache/twill/discovery/Discoverable.html" title="class in org.apache.twill.discovery">Discoverable</a>&nbsp;discoverable)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">ZKDiscoveryService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/discovery/ZKDiscoveryService.html#register-org.apache.twill.discovery.Discoverable-">register</a></span>(<a href="../../../../../org/apache/twill/discovery/Discoverable.html" title="class in org.apache.twill.discovery">Discoverable</a>&nbsp;discoverable)</code>
<div class="block">Registers a <a href="../../../../../org/apache/twill/discovery/Discoverable.html" title="class in org.apache.twill.discovery"><code>Discoverable</code></a> in zookeeper.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">DiscoveryService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/discovery/DiscoveryService.html#register-org.apache.twill.discovery.Discoverable-">register</a></span>(<a href="../../../../../org/apache/twill/discovery/Discoverable.html" title="class in org.apache.twill.discovery">Discoverable</a>&nbsp;discoverable)</code>
<div class="block">Registers a <a href="../../../../../org/apache/twill/discovery/Discoverable.html" title="class in org.apache.twill.discovery"><code>Discoverable</code></a> service.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">ServiceDiscovered.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/discovery/ServiceDiscovered.html#watchChanges-org.apache.twill.discovery.ServiceDiscovered.ChangeListener-java.util.concurrent.Executor-">watchChanges</a></span>(<a href="../../../../../org/apache/twill/discovery/ServiceDiscovered.ChangeListener.html" title="interface in org.apache.twill.discovery">ServiceDiscovered.ChangeListener</a>&nbsp;listener,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Executor.html?is-external=true" title="class or interface in java.util.concurrent">Executor</a>&nbsp;executor)</code>
<div class="block">Registers a <a href="../../../../../org/apache/twill/discovery/ServiceDiscovered.ChangeListener.html" title="interface in org.apache.twill.discovery"><code>ServiceDiscovered.ChangeListener</code></a> to watch for changes in the discovery list.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.twill.internal">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a> in <a href="../../../../../org/apache/twill/internal/package-summary.html">org.apache.twill.internal</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation">
<caption><span>Subinterfaces of <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a> in <a href="../../../../../org/apache/twill/internal/package-summary.html">org.apache.twill.internal</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Interface and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code>interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/internal/ProcessController.html" title="interface in org.apache.twill.internal">ProcessController</a>&lt;R&gt;</span></code>
<div class="block">For controlling a launch yarn process.</div>
</td>
</tr>
</tbody>
</table>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/twill/internal/package-summary.html">org.apache.twill.internal</a> that return <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">BasicTwillContext.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/internal/BasicTwillContext.html#announce-java.lang.String-int-">announce</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;serviceName,
int&nbsp;port)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">BasicTwillContext.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/internal/BasicTwillContext.html#announce-java.lang.String-int-byte:A-">announce</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;serviceName,
int&nbsp;port,
byte[]&nbsp;payload)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">BasicTwillContext.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/internal/BasicTwillContext.html#electLeader-java.lang.String-org.apache.twill.api.ElectionHandler-">electLeader</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="../../../../../org/apache/twill/api/ElectionHandler.html" title="interface in org.apache.twill.api">ElectionHandler</a>&nbsp;participantHandler)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">ElectionRegistry.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/internal/ElectionRegistry.html#register-java.lang.String-org.apache.twill.api.ElectionHandler-">register</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="../../../../../org/apache/twill/api/ElectionHandler.html" title="interface in org.apache.twill.api">ElectionHandler</a>&nbsp;handler)</code>
<div class="block">Creates a new <code>LeaderElection</code> for the given arguments, starts the service, and adds it to the registry.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.twill.kafka.client">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a> in <a href="../../../../../org/apache/twill/kafka/client/package-summary.html">org.apache.twill.kafka.client</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/twill/kafka/client/package-summary.html">org.apache.twill.kafka.client</a> that return <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">BrokerService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/kafka/client/BrokerService.html#addChangeListener-org.apache.twill.kafka.client.BrokerService.BrokerChangeListener-java.util.concurrent.Executor-">addChangeListener</a></span>(<a href="../../../../../org/apache/twill/kafka/client/BrokerService.BrokerChangeListener.html" title="class in org.apache.twill.kafka.client">BrokerService.BrokerChangeListener</a>&nbsp;listener,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Executor.html?is-external=true" title="class or interface in java.util.concurrent">Executor</a>&nbsp;executor)</code>
<div class="block">Adds a listener to changes in broker list managed by this service.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">KafkaConsumer.Preparer.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/kafka/client/KafkaConsumer.Preparer.html#consume-org.apache.twill.kafka.client.KafkaConsumer.MessageCallback-">consume</a></span>(<a href="../../../../../org/apache/twill/kafka/client/KafkaConsumer.MessageCallback.html" title="interface in org.apache.twill.kafka.client">KafkaConsumer.MessageCallback</a>&nbsp;callback)</code>
<div class="block">Starts the consumption as being configured by this <a href="../../../../../org/apache/twill/kafka/client/KafkaConsumer.Preparer.html" title="interface in org.apache.twill.kafka.client"><code>KafkaConsumer.Preparer</code></a>.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.twill.yarn">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a> in <a href="../../../../../org/apache/twill/yarn/package-summary.html">org.apache.twill.yarn</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/twill/yarn/package-summary.html">org.apache.twill.yarn</a> that return <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">YarnTwillRunnerService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/yarn/YarnTwillRunnerService.html#scheduleSecureStoreUpdate-org.apache.twill.api.SecureStoreUpdater-long-long-java.util.concurrent.TimeUnit-">scheduleSecureStoreUpdate</a></span>(<a href="../../../../../org/apache/twill/api/SecureStoreUpdater.html" title="interface in org.apache.twill.api">SecureStoreUpdater</a>&nbsp;updater,
long&nbsp;initialDelay,
long&nbsp;delay,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</a>&nbsp;unit)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">YarnTwillRunnerService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/yarn/YarnTwillRunnerService.html#setSecureStoreRenewer-org.apache.twill.api.security.SecureStoreRenewer-long-long-long-java.util.concurrent.TimeUnit-">setSecureStoreRenewer</a></span>(<a href="../../../../../org/apache/twill/api/security/SecureStoreRenewer.html" title="class in org.apache.twill.api.security">SecureStoreRenewer</a>&nbsp;renewer,
long&nbsp;initialDelay,
long&nbsp;delay,
long&nbsp;retryDelay,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/TimeUnit.html?is-external=true" title="class or interface in java.util.concurrent">TimeUnit</a>&nbsp;unit)</code>&nbsp;</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="org.apache.twill.zookeeper">
<!-- -->
</a>
<h3>Uses of <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a> in <a href="../../../../../org/apache/twill/zookeeper/package-summary.html">org.apache.twill.zookeeper</a></h3>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation">
<caption><span>Methods in <a href="../../../../../org/apache/twill/zookeeper/package-summary.html">org.apache.twill.zookeeper</a> that return <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">ForwardingZKClient.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/zookeeper/ForwardingZKClient.html#addConnectionWatcher-org.apache.zookeeper.Watcher-">addConnectionWatcher</a></span>(org.apache.zookeeper.Watcher&nbsp;watcher)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">ZKClient.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/zookeeper/ZKClient.html#addConnectionWatcher-org.apache.zookeeper.Watcher-">addConnectionWatcher</a></span>(org.apache.zookeeper.Watcher&nbsp;watcher)</code>
<div class="block">Adds a <code>Watcher</code> that will be called whenever connection state change.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">ZKOperations.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/zookeeper/ZKOperations.html#watchChildren-org.apache.twill.zookeeper.ZKClient-java.lang.String-org.apache.twill.zookeeper.ZKOperations.ChildrenCallback-">watchChildren</a></span>(<a href="../../../../../org/apache/twill/zookeeper/ZKClient.html" title="interface in org.apache.twill.zookeeper">ZKClient</a>&nbsp;zkClient,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path,
<a href="../../../../../org/apache/twill/zookeeper/ZKOperations.ChildrenCallback.html" title="interface in org.apache.twill.zookeeper">ZKOperations.ChildrenCallback</a>&nbsp;callback)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Cancellable</a></code></td>
<td class="colLast"><span class="typeNameLabel">ZKOperations.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/twill/zookeeper/ZKOperations.html#watchData-org.apache.twill.zookeeper.ZKClient-java.lang.String-org.apache.twill.zookeeper.ZKOperations.DataCallback-">watchData</a></span>(<a href="../../../../../org/apache/twill/zookeeper/ZKClient.html" title="interface in org.apache.twill.zookeeper">ZKClient</a>&nbsp;zkClient,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path,
<a href="../../../../../org/apache/twill/zookeeper/ZKOperations.DataCallback.html" title="interface in org.apache.twill.zookeeper">ZKOperations.DataCallback</a>&nbsp;callback)</code>
<div class="block">Watch for data changes of the given path.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../org/apache/twill/common/Cancellable.html" title="interface in org.apache.twill.common">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/twill/common/class-use/Cancellable.html" target="_top">Frames</a></li>
<li><a href="Cancellable.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2013-2020 <a href="http://www.apache.org">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>