1/* 2 * Copyright (C) 2018 The Android Open Source Project 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 [email protected]; 18 19/** 20 * IObserver listens on notifications from the buffer pool. On receiving 21 * notifications, FMQ messages from the specific buffer pool which are already 22 * in the FMQ are processed. 23 */ 24interface IObserver { 25 26 /** 27 * The specific buffer pool sent a message to the client. Calling this 28 * method from the buffer pool enforces a buffer pool client process the 29 * message. 30 * 31 * @param connectionId the connection Id of the specific buffer pool client 32 * @param msgId Id of the most recent message 33 */ 34 oneway onMessage(int64_t connectionId, uint32_t msgId); 35}; 36