source: java/main/src/main/java/com/framsticks/communication/util/LoggingStateCallback.java @ 193

Last change on this file since 193 was 193, checked in by Maciej Komosinski, 10 years ago

Set svn:eol-style native for all textual files

  • Property svn:eol-style set to native
File size: 713 bytes
Line 
1package com.framsticks.communication.util;
2
3import com.framsticks.communication.ClientSideResponseFuture;
4import com.framsticks.communication.Response;
5
6import org.apache.logging.log4j.Logger;
7
8/**
9 * @author Piotr Sniegowski
10 */
11public class LoggingStateCallback extends ClientSideResponseFuture {
12
13        protected final Logger logger;
14        protected final String message;
15
16        public LoggingStateCallback(Logger logger, String message) {
17                super(null);
18                this.logger = logger;
19                this.message = message;
20        }
21
22        // @Override
23        // public void handle(FramsticksException e) {
24        //      logger.error("failed to " + message + " with " + e);
25        // }
26
27        @Override
28        protected void processOk(Response response) {
29                logger.debug(message);
30        }
31
32}
Note: See TracBrowser for help on using the repository browser.