PageRenderTime 24ms CodeModel.GetById 19ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/hazelcast/src/main/java/com/hazelcast/impl/InnerFutureTask.java

https://bitbucket.org/gabral6_gmailcom/hazelcast
Java | 51 lines | 20 code | 16 blank | 15 comment | 0 complexity | 263f84bd4108b52e3d5c3f52b8fdb592 MD5 | raw file
 1/*
 2 * Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved.
 3 *
 4 * Licensed under the Apache License, Version 2.0 (the "License");
 5 * you may not use this file except in compliance with the License.
 6 * You may obtain a copy of the License at
 7 *
 8 * http://www.apache.org/licenses/LICENSE-2.0
 9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.hazelcast.impl;
18
19import com.hazelcast.core.ExecutionCallback;
20import com.hazelcast.core.Member;
21
22import java.util.Set;
23import java.util.concurrent.Callable;
24
25public interface InnerFutureTask<V> {
26    void innerSet(V value);
27
28    void innerSetException(Throwable throwable, boolean done);
29
30    void innerSetMemberLeft(Member member);
31
32    void innerSetCancelled();
33
34    void innerDone();
35
36    boolean cancel(boolean mayInterruptIfRunning);
37
38    Callable<V> getCallable();
39
40    Object getKey();
41
42    Member getMember();
43
44    Set<Member> getMembers();
45
46    void setExecutionManagerCallback(ExecutionManagerCallback action);
47
48    ExecutionCallback<V> getExecutionCallback();
49
50    boolean isDone();
51}