// Path: src/main/java/org/mockenize/model/LogBean.java
// @Data
// public class LogBean implements Serializable, Cacheable {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	private String key;
// 
// 	private LogType type;
// 
// 	private String url;
// 
// 	private String path;
// 
// 	private String method;
// 
// 	private RequestLogBean request;
// 
// 	private ResponseLogBean response;
// 
// 	private Date date = new Date();
// 
// 	protected LogBean() {
// 	}
// 
// 	public LogBean(UUID key, LogType type) {
// 		this.key = key.toString();
// 		this.type = type;
// 	}
// 
// }


import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IQueue;
import org.mockenize.model.LogBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
package org.mockenize.repository;


@Repository
public class RequestLogRepository {

    private static final String CACHE_KEY = "request-log";

    private final IQueue<Object> queue;

    @Autowired
    public RequestLogRepository(HazelcastInstance hazelcastInstance) {
        queue = hazelcastInstance.getQueue(CACHE_KEY);
    }

// Path: src/main/java/org/mockenize/model/LogBean.java
// @Data
// public class LogBean implements Serializable, Cacheable {
// 
// 	private static final long serialVersionUID = 1L;
// 
// 	private String key;
// 
// 	private LogType type;
// 
// 	private String url;
// 
// 	private String path;
// 
// 	private String method;
// 
// 	private RequestLogBean request;
// 
// 	private ResponseLogBean response;
// 
// 	private Date date = new Date();
// 
// 	protected LogBean() {
// 	}
// 
// 	public LogBean(UUID key, LogType type) {
// 		this.key = key.toString();
// 		this.type = type;
// 	}
// 
// }


// Path: src/main/java/org/mockenize/repository/RequestLogRepository.java
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IQueue;
import org.mockenize.model.LogBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

package org.mockenize.repository;


@Repository
public class RequestLogRepository {

    private static final String CACHE_KEY = "request-log";

    private final IQueue<Object> queue;

    @Autowired
    public RequestLogRepository(HazelcastInstance hazelcastInstance) {
        queue = hazelcastInstance.getQueue(CACHE_KEY);
    }

    public void save(LogBean requestLogBean) {