Repository navigation
Expand file tree
/
Copy pathCallback.java
More file actions
61 lines (54 loc) · 1.43 KB
/
Copy pathCallback.java
File metadata and controls
61 lines (54 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.pubnub.api;
/**
* Abstract class to be subclassed by objects being passed as callbacks to
* Pubnub APIs Default implementation for all methods is blank
*
* @author Pubnub
*
*/
public abstract class Callback {
/**
* This callback will be invoked when a message is received on the channel
*
* @param channel
* Channel Name
* @param message
* Message
*
*/
public abstract void successCallback(String channel, Object message);
/**
* This callback will be invoked when an error occurs
*
* @param channel
* Channel Name
* @param message
* Message
*/
public abstract void errorCallback(String channel, Object message);
/**
* This callback will be invoked on getting connected to a channel
*
* @param channel
* Channel Name
*/
public void connectCallback(String channel, Object message) {
}
/**
* This callback is invoked on getting reconnected to a channel after
* getting disconnected
*
* @param channel
* Channel Name
*/
public void reconnectCallback(String channel, Object message) {
}
/**
* This callback is invoked on getting disconnected from a channel
*
* @param channel
* Channel Name
*/
public void disconnectCallback(String channel, Object message) {
}
}