lombok.extern.slf4j.Slf4j.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(378)

本文整理了Java中lombok.extern.slf4j.Slf4j.<init>()方法的一些代码示例,展示了Slf4j.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Slf4j.<init>()方法的具体详情如下:
包路径:lombok.extern.slf4j.Slf4j
类名称:Slf4j
方法名:<init>

Slf4j.<init>介绍

暂无

代码示例

代码示例来源:origin: apache/incubator-shardingsphere

/**
 * PostgreSQL parse complete packet.
 *
 * @author zhangyonglun
 */
@Slf4j
public final class PostgreSQLParseCompletePacket implements PostgreSQLPacket {
  
  @Getter
  private final char messageType = PostgreSQLCommandPacketType.PARSE_COMPLETE.getValue();
  
  @Override
  public void write(final PostgreSQLPacketPayload payload) {
  }
  
  @Override
  public int getSequenceId() {
    return 0;
  }
}

代码示例来源:origin: apache/incubator-shardingsphere

/**
 * PostgreSQL bind complete packet.
 *
 * @author zhangyonglun
 */
@Slf4j
public final class PostgreSQLBindCompletePacket implements PostgreSQLPacket {
  
  @Getter
  private final char messageType = PostgreSQLCommandPacketType.BIND_COMPLETE.getValue();
  
  @Override
  public void write(final PostgreSQLPacketPayload payload) {
  }
  
  @Override
  public int getSequenceId() {
    return 0;
  }
}

代码示例来源:origin: apache/incubator-shardingsphere

/**
 * PostgreSQL command sync packet.
 *
 * @author zhangyonglun
 */
@Slf4j
public final class PostgreSQLComSyncPacket implements PostgreSQLCommandPacket {
  
  @Getter
  private final char messageType = PostgreSQLCommandPacketType.SYNC.getValue();
  
  public PostgreSQLComSyncPacket(final PostgreSQLPacketPayload payload) {
    payload.readInt4();
  }
  
  @Override
  public void write(final PostgreSQLPacketPayload payload) {
  }
  
  @Override
  public Optional<PostgreSQLCommandResponsePackets> execute() {
    return Optional.absent();
  }
  
  @Override
  public int getSequenceId() {
    return 0;
  }
}

代码示例来源:origin: apache/incubator-shardingsphere

/**
 * PostgreSQL command termination packet.
 *
 * @author zhangyonglun
 */
@Slf4j
public final class PostgreSQLComTerminationPacket implements PostgreSQLCommandPacket {
  
  @Getter
  private final char messageType = PostgreSQLCommandPacketType.TERMINATE.getValue();
  
  public PostgreSQLComTerminationPacket(final PostgreSQLPacketPayload payload) {
    payload.readInt4();
  }
  
  @Override
  public void write(final PostgreSQLPacketPayload payload) {
  }
  
  @Override
  public Optional<PostgreSQLCommandResponsePackets> execute() {
    return Optional.absent();
  }
  
  @Override
  public int getSequenceId() {
    return 0;
  }
}

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class ComStmtClosePacket implements CommandPacket {
  @Getter
  private final int sequenceId;

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class PostgreSQLComExecutePacket implements PostgreSQLCommandPacket {
  @Getter
  private final char messageType = PostgreSQLCommandPacketType.EXECUTE.getValue();

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class ComStmtClosePacket implements CommandPacket {
  @Getter
  private final int sequenceId;

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class PostgreSQLComDescribePacket implements PostgreSQLCommandPacket {
  @Getter
  private final char messageType = PostgreSQLCommandPacketType.DESCRIBE.getValue();

代码示例来源:origin: elasticjob/elastic-job-lite

/**
 * 事件追踪数据源.
 * 
 * @author zhangxinguo
 */
@Slf4j
public final class EventTraceDataSource {
  
  @Getter(AccessLevel.PROTECTED)
  private EventTraceDataSourceConfiguration eventTraceDataSourceConfiguration;
  
  public EventTraceDataSource(final EventTraceDataSourceConfiguration eventTraceDataSourceConfiguration) {
    this.eventTraceDataSourceConfiguration = eventTraceDataSourceConfiguration;
  }
  
  /**
   * 初始化.
   */
  public void init() {
    log.debug("Elastic job: data source init, connection url is: {}.", eventTraceDataSourceConfiguration.getUrl());
    try {
      Class.forName(eventTraceDataSourceConfiguration.getDriver());
      DriverManager.getConnection(eventTraceDataSourceConfiguration.getUrl(), eventTraceDataSourceConfiguration.getUsername(), eventTraceDataSourceConfiguration.getPassword());
    } catch (final ClassNotFoundException | SQLException ex) {
      throw new RuntimeException(ex);
    }
  }
}

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class ComInitDbPacket implements CommandPacket {
  @Getter
  private final int sequenceId;

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class ComInitDbPacket implements CommandPacket {
  @Getter
  private final int sequenceId;

代码示例来源:origin: apache/incubator-shardingsphere

@Getter
@Slf4j
public final class XATransactionManagerLoader {

代码示例来源:origin: apache/incubator-shardingsphere

@Getter
@Slf4j
public class ShardingDataSource extends AbstractDataSourceAdapter {

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class PostgreSQLComQueryPacket implements PostgreSQLQueryCommandPacket {
  @Getter
  private final char messageType = PostgreSQLCommandPacketType.QUERY.getValue();

代码示例来源:origin: apache/incubator-shardingsphere

@Getter
@Slf4j
public class MasterSlaveDataSource extends AbstractDataSourceAdapter {

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class ComQueryPacket implements QueryCommandPacket {
  @Getter
  private final int sequenceId;

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class ComQueryPacket implements QueryCommandPacket {
  @Getter
  private final int sequenceId;

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class ComFieldListPacket implements CommandPacket {
  @Getter
  private final int sequenceId;

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class ComFieldListPacket implements CommandPacket {
  @Getter
  private final int sequenceId;

代码示例来源:origin: apache/incubator-shardingsphere

@Slf4j
public final class PostgreSQLComParsePacket implements PostgreSQLCommandPacket {
  @Getter
  private final char messageType = PostgreSQLCommandPacketType.PARSE.getValue();

相关文章

Slf4j类方法