From 4ffbdbb58ffc6f4523c881a0d8dc4fefb28caf15 Mon Sep 17 00:00:00 2001 From: Maciej Lach Date: Tue, 14 Jul 2015 09:47:20 +0200 Subject: [PATCH] Remove redundant abstract keyword from interface --- .../java/com/exxeleron/qjava/QConnection.java | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/src/main/java/com/exxeleron/qjava/QConnection.java b/src/main/java/com/exxeleron/qjava/QConnection.java index e0bb76f..10e165b 100644 --- a/src/main/java/com/exxeleron/qjava/QConnection.java +++ b/src/main/java/com/exxeleron/qjava/QConnection.java @@ -1,12 +1,12 @@ /** * Copyright (c) 2011-2014 Exxeleron GmbH - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,14 +20,14 @@ /** * Interface for the q connector. - * + * * @author dev123 */ public interface QConnection { /** * Defines IPC message types. - * + * * @author dev123 */ public static enum MessageType { @@ -37,14 +37,14 @@ public static enum MessageType { /** * Factory method for creating enum based on IPC message byte. - * + * * @param i * byte indicating message type * @return {@link MessageType} matching the byte - * + * * @throws IllegalArgumentException */ - public static MessageType getMessageType( byte i ) { + public static MessageType getMessageType( final byte i ) { switch ( i ) { case 0: return ASYNC; @@ -60,41 +60,41 @@ public static MessageType getMessageType( byte i ) { /** * Initializes connection with the remote q service. - * + * * @throws IOException * @throws UnknownHostException * @throws QException */ - public abstract void open() throws IOException, QException; + public void open() throws IOException, QException; /** * Closes connection with the remote q service. - * + * * @throws IOException */ - public abstract void close() throws IOException; + public void close() throws IOException; /** * Reinitializes connection with the remote q service. - * + * * @throws IOException * @throws UnknownHostException * @throws QException */ - public abstract void reset() throws IOException, QException; + public void reset() throws IOException, QException; /** * Check whether connection with the remote q host has been established. Note that this function doesn't check * whether the connection is still active. One has to use a heartbeat mechanism in order to check whether the * connection is still active. - * + * * @return true if connection with remote host is established, false otherwise */ - public abstract boolean isConnected(); + public boolean isConnected(); /** * Executes a synchronous query against the remote q service. - * + * * @param query * Query to be executed * @param parameters @@ -103,11 +103,11 @@ public static MessageType getMessageType( byte i ) { * @throws QException * @throws IOException */ - public abstract Object sync( String query, Object... parameters ) throws QException, IOException; + public Object sync( String query, Object... parameters ) throws QException, IOException; /** * Executes an asynchronous query against the remote q service. - * + * * @param query * Query to be executed * @param parameters @@ -115,11 +115,11 @@ public static MessageType getMessageType( byte i ) { * @throws QException * @throws IOException */ - public abstract void async( String query, Object... parameters ) throws QException, IOException; + public void async( String query, Object... parameters ) throws QException, IOException; /** * Reads next message from the remote q service. - * + * * @param dataOnly * if true returns only data part of the message, if false retuns data and * message meta-information encapsulated in QMessage @@ -129,21 +129,21 @@ public static MessageType getMessageType( byte i ) { * @throws IOException * @throws QException */ - public abstract Object receive( boolean dataOnly, boolean raw ) throws IOException, QException; + public Object receive( boolean dataOnly, boolean raw ) throws IOException, QException; /** * Reads next message from the remote q service. - * + * * @return deserialized response from the remote q service * @throws IOException * @throws QException */ - public abstract Object receive() throws IOException, QException; + public Object receive() throws IOException, QException; /** * Executes a query against the remote q service. Result of the query has to be retrieved by calling a receive * method. - * + * * @param msgType * Indicates whether message should be synchronous or asynchronous * @param query @@ -154,48 +154,48 @@ public static MessageType getMessageType( byte i ) { * @throws QException * @throws IOException */ - public abstract int query( final MessageType msgType, final String query, final Object... parameters ) throws QException, IOException; + public int query( final MessageType msgType, final String query, final Object... parameters ) throws QException, IOException; /** * Returns the host of a remote q service. - * + * * @return host of remote a q service */ - public abstract String getHost(); + public String getHost(); /** * Returns the port of a remote q service. - * + * * @return post of remote a q service */ - public abstract int getPort(); + public int getPort(); /** * Returns username for remote authorization. - * + * * @return username for remote authorization */ - public abstract String getUsername(); + public String getUsername(); /** * Returns password for remote authorization. - * + * * @return password for remote authorization */ - public abstract String getPassword(); + public String getPassword(); /** * Returns encoding used for serialization/deserialization of string objects. - * + * * @return encoding used for serialization/deserialization of string objects */ - public abstract String getEncoding(); + public String getEncoding(); /** * Retrives version of the IPC protocol for an established connection. - * + * * @return protocol version */ - public abstract int getProtocolVersion(); + public int getProtocolVersion(); } \ No newline at end of file