com.google.ipc.invalidation.ticl.android2.ProtocolIntents.ClientDowncalls Java Examples
The following examples show how to use
com.google.ipc.invalidation.ticl.android2.ProtocolIntents.ClientDowncalls.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void acknowledge(AckHandle ackHandle) { try { AckHandleP ackHandleP = AckHandleP.parseFrom(ackHandle.getHandleData()); issueIntent(ClientDowncalls.newAcknowledgeIntent(ackHandleP)); } catch (InvalidProtocolBufferException exception) { logger.warning("Dropping acknowledge(); could not parse ack handle data %s", Arrays.toString(ackHandle.getHandleData())); } }
Example #2
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void acknowledge(AckHandle ackHandle) { try { AckHandleP ackHandleP = AckHandleP.parseFrom(ackHandle.getHandleData()); issueIntent(ClientDowncalls.newAcknowledgeIntent(ackHandleP)); } catch (InvalidProtocolBufferException exception) { logger.warning("Dropping acknowledge(); could not parse ack handle data %s", Arrays.toString(ackHandle.getHandleData())); } }
Example #3
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public void unregister(ObjectId objectId) { List<ObjectIdP> objects = new ArrayList<ObjectIdP>(1); objects.add(ProtoConverter.convertToObjectIdProto(objectId)); issueIntent(ClientDowncalls.newUnregistrationIntent(objects)); }
Example #4
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public void unregister(Collection<ObjectId> objectIds) { List<ObjectIdP> objectIdPs = ProtoConverter.convertToObjectIdProtoList(objectIds); issueIntent(ClientDowncalls.newUnregistrationIntent(objectIdPs)); }
Example #5
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public void unregister(ObjectId objectId) { List<ObjectIdP> objects = new ArrayList<ObjectIdP>(1); objects.add(ProtoConverter.convertToObjectIdProto(objectId)); issueIntent(ClientDowncalls.newUnregistrationIntent(objects)); }
Example #6
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public void register(Collection<ObjectId> objectIds) { List<ObjectIdP> objectIdPs = ProtoConverter.convertToObjectIdProtoList(objectIds); issueIntent(ClientDowncalls.newRegistrationIntent(objectIdPs)); }
Example #7
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public void register(ObjectId objectId) { List<ObjectIdP> objects = new ArrayList<ObjectIdP>(1); objects.add(ProtoConverter.convertToObjectIdProto(objectId)); issueIntent(ClientDowncalls.newRegistrationIntent(objects)); }
Example #8
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public void stop() { issueIntent(ClientDowncalls.newStopIntent()); }
Example #9
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public void unregister(Collection<ObjectId> objectIds) { List<ObjectIdP> objectIdPs = ProtoConverter.convertToObjectIdProtoList(objectIds); issueIntent(ClientDowncalls.newUnregistrationIntent(objectIdPs)); }
Example #10
Source File: AndroidInvalidationClientStub.java From 365browser with Apache License 2.0 | 4 votes |
@Override public void stop() { issueIntent(ClientDowncalls.newStopIntent()); }
Example #11
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public void register(Collection<ObjectId> objectIds) { List<ObjectIdP> objectIdPs = ProtoConverter.convertToObjectIdProtoList(objectIds); issueIntent(ClientDowncalls.newRegistrationIntent(objectIdPs)); }
Example #12
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public void register(ObjectId objectId) { List<ObjectIdP> objects = new ArrayList<ObjectIdP>(1); objects.add(ProtoConverter.convertToObjectIdProto(objectId)); issueIntent(ClientDowncalls.newRegistrationIntent(objects)); }
Example #13
Source File: AndroidInvalidationClientStub.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public void stop() { issueIntent(ClientDowncalls.newStopIntent()); }
Example #14
Source File: AndroidInvalidationClientStub.java From 365browser with Apache License 2.0 | 4 votes |
@Override public void acknowledge(AckHandle ackHandle) { issueIntent(ClientDowncalls.newAcknowledgeIntent(ackHandle.getHandleData())); }
Example #15
Source File: AndroidInvalidationClientStub.java From 365browser with Apache License 2.0 | 4 votes |
@Override public void unregister(Collection<ObjectId> objectIds) { Collection<ObjectIdP> objectIdPs = ProtoWrapperConverter.convertToObjectIdProtoCollection(objectIds); issueIntent(ClientDowncalls.newUnregistrationIntent(objectIdPs)); }
Example #16
Source File: AndroidInvalidationClientStub.java From 365browser with Apache License 2.0 | 4 votes |
@Override public void unregister(ObjectId objectId) { Collection<ObjectIdP> objects = Collections.singletonList(ProtoWrapperConverter.convertToObjectIdProto(objectId)); issueIntent(ClientDowncalls.newUnregistrationIntent(objects)); }
Example #17
Source File: AndroidInvalidationClientStub.java From 365browser with Apache License 2.0 | 4 votes |
@Override public void register(Collection<ObjectId> objectIds) { Collection<ObjectIdP> objectIdPs = ProtoWrapperConverter.convertToObjectIdProtoCollection(objectIds); issueIntent(ClientDowncalls.newRegistrationIntent(objectIdPs)); }
Example #18
Source File: AndroidInvalidationClientStub.java From 365browser with Apache License 2.0 | 4 votes |
@Override public void register(ObjectId objectId) { Collection<ObjectIdP> objects = Collections.singletonList(ProtoWrapperConverter.convertToObjectIdProto(objectId)); issueIntent(ClientDowncalls.newRegistrationIntent(objects)); }